package com.gy.api;

import com.aaa.vo.Result;
import com.gy.service.DispenseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author GaoYa
 * @Date 2023/4/4 15:05
 * @Version 1.5
 */
@RestController
@RequestMapping("/charge/api/")
public class DispenseController {

    @Autowired
    private DispenseService dispenseService;

    @PostMapping("/Dispense")
    public Result Dispense(@RequestBody String[] itemIds) {
        return dispenseService.DispenseOut(itemIds);
    }
}
